package com.wxtl.util;

/**  
 * @ClassName: UPProtocol  
 * @Description: 升级协议 
 * @author Martin  
 * @createDate Dec 26, 2012 3:55:56 PM  
 * @version 1.0 
 * @copyright onesunsoft.com  
 */
public interface UPProtocol {
	//http header for browser
	public static String REQUEST_HEADER_UAGENT = "User-Agent";
	public static String SC_BROWSER_HEADER_V = "T-SC";
	/*
	 * 服务端向客户端返回文件长度
	 */
	public static String FILE_LENGTH = "file-length";
	
	public static String REQ_CODE = "reqCode";
	//register
	public static String SCV = "scv";
	
	public static String INDUSTY_TYPE = "industryType";
	public static String PROVINCE = "province";
	public static String CITY = "city";
	public static String ADD = "add";
	public static String TEL = "tel";
	public static String LINK_MAN = "linkman";
	public static String EMAIL = "email";
	public static String WEBSITE = "website";
	public static String FAX = "fax";
	public static String BIZ_SCOPE = "bizScope";
	
	//return register
	public static String AUTH_SN = "authsn";
	public static String CUST_SN = "custsn";
	public static String ENT_NAME = "entname";
	// request upgrade pack list
	public static String PRO_LIST = "prolist";
	public static String PLUG_LIST = "pluglist";
	public static String OTHER = "other";
	
	//download
	/**
	 * @Fields DV_CODE : The dynamic verifiable code
	 */
	public static String DV_CODE = "dvCode";
	public static String UPGRADE_ID= "upgradeId";
	public static String UP_CODE = "upCode";
	public static String MAC = "mac";
	public static String OS = "os";
	public static String LAST_UP_TIME = "lastUptime";
	public static String LAN_IP = "lanIP";
	public static String PORT = "port";
	
	//install success
	public static String VERSION = "version";
	public static String REVISION = "revision";
	
	
	/**
	 * dog
	 */
	public static String DOG_SN = "dogsn";
	public static String DOG_V = "dogv";
	
	public static String QC_CLIENT_REG = "001";
	public static String QC_CLIENT_UP_LIST = "002";
	public static String QC_CLIENT_DOWN = "003";
	public static String QC_CLIENT_D_REPORT = "004";
	
	
	//-----------XML----------------
	public static String X_ROOT = "data";
	public static String X_SUCCESS = "success";
	public static String X_MSG = "msg";
	public static String X_DOWN_URL = "downurl";
	public static String X_VIEW_URL = "viewurl";
	public static String X_BUY_URL = "buyurl";
	public static String X_REPORT_URL = "reporturl";
		
	public static String X_UP_LIST = "uplist";
	public static String X_UPGRADE_PACK = "upgradePack";
	public static String X_UPGRADE_ID = "upgradeId";
	public static String X_TYPE = "upType";
	public static String X_UPCODE = "upCode";
	public static String X_PROCODE = "proCode";
	public static String X_NAME = "upName";
	public static String X_CATEGORY = "category";
	public static String X_PRICE ="price";
	public static String X_CONSUM_TYPE = "consumType";
	public static String X_STATE = "state";
	public static String X_DESCRIBE = "description";
	public static String X_SUPT_VERSION = "suptVersion";
	public static String X_SUPT_REVISION = "suptRevision";
	public static String X_MD5 = "md5Value";
	public static String X_RELEASE_DATE = "releaseDate";
	public static String X_AUTHOR = "author";
	//return to client about registration info
	public static String X_CUSTSN = "custsn";
	public static String X_AUTHSN = "authsn";
	
	
}
